//
//  MenuListTableViewCell.m
//  Food
//
//  Created by dlios on 15-7-15.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#import "MenuListTableViewCell.h"
#import "BaseHeader.h"

@implementation MenuListTableViewCell

- (void)dealloc
{
    [_menuLabel release];
    [super dealloc];
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.menuLabel = [[UILabel alloc] init];
        self.menuLabel.textAlignment = NSTextAlignmentCenter;
        self.menuLabel.font = [UIFont systemFontOfSize:15];
        [self.contentView addSubview:self.menuLabel];
        [_menuLabel release];
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.menuLabel.frame = CGRectMake(0, 0, tableViewWidth, tableViewHeight);
    
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
